<template>
	<view>
		<view class="smart-panel-title">&nbsp;&nbsp;1.容器</view>
		<view class="smart-panel-h" @click="goDetailPage('view')"><text>&nbsp;&nbsp;view视图</text></view>
		
		<view class="smart-panel-title">&nbsp;&nbsp;2.基础组件</view>
		<view class="smart-panel-h"@click="goDetailPage('text')"><text>&nbsp;&nbsp;text文本编辑</text></view>
		<view class="smart-innel-h" @click="goDetailPage('icon')"><text>&nbsp;&nbsp;&nbsp;icon图标</text></view>
		
		<view class="smart-panel-title">&nbsp;&nbsp;3.表单组件</view>
		<view class="smart-panel-h" @click="goDetailPage('button')"><text>&nbsp;&nbsp;button组件</text></view>
		<view class="smart-innel-h" @click="goDetailPage('checkbox')"><text>&nbsp;&nbsp;&nbsp;checkbox多选框</text></view>
		<view class="smart-panel-h" @click="goDetailPage('label')"><text>&nbsp;&nbsp;label标签组件</text></view>
		<view class="smart-innel-h" @click="goDetailPage('input')"><text>&nbsp;&nbsp;&nbsp;input输入框</text></view>
		<view class="smart-panel-h" @click="goDetailPage('textarea')"><text>&nbsp;&nbsp;textarea多行文本输入框</text></view>
		<view class="smart-innel-h" @click="goDetailPage('form')"><text>&nbsp;&nbsp;&nbsp;form表单</text></view>
		
		<view class="smart-panel-title">&nbsp;&nbsp;4.导航组件</view>
		<view class="smart-innel-h" @click="goDetailPage('navigator')"><text>&nbsp;&nbsp;&nbsp;navigator导航</text></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad() {
			uni.getStorage({
				key:'username',
				
				succsee:(result)=>{
					console.log("getStorage",result.data);
					
				}
			})
		},
		methods: {
			goDetailPage(e) {
			if (typeof e == 'string') {
				uni.navigateTo({
				 url: '/pages/components/' + e + '/' + e
			  });
			} else {
				uni.navigateTo({
					url: e.url
				});
			}
			
		}
	}
}
</script>

<style>
.smart-innel-panel{
	background-color: #aa99ff;
	flex-direction: row;
	align-items: center;
	padding: 12px;
	margin-bottom: 2px;
}
</style>
